import axios from '@/libs/api.request'

// 区级查询经费发放列表
export const findTradeUnionList = (param) => {
  return axios.request({
    url: '/api/ac/csc/tradeUnionService/findTradeUnionList',
    method: 'post',
    data: param
  })
}
// 区级查询经费发放列表明细
export const findTradeUnionDetailList = (param) => {
  return axios.request({
    url: '/api/ac/csc/tradeUnionService/findTradeUnionDetailList',
    method: 'post',
    data: param
  })
}
// 区级导入数据
export const createTradeUnionInfo = (param) => {
  return axios.request({
    url: '/api/ac/csc/tradeUnionService/createTradeUnionInfo',
    method: 'post',
    data: param
  })
}
// 查询区级下街道数据
export const findSubordinateList = (param) => {
  return axios.request({
    url: '/api/ac/grid/sysOfficeLevelService/findSubordinateList',
    method: 'post',
    data: param
  })
}
// 街道进行处置
export const updateTradeUnionInfoCZ = (param) => {
  return axios.request({
    url: '/api/ac/csc/tradeUnionService/updateTradeUnionInfoCZ',
    method: 'post',
    data: param
  })
}
// 数据导出
export const findTradeUnionNoPageList = (param) => {
  return axios.request({
    url: '/api/ac/csc/tradeUnionService/findTradeUnionNoPageList',
    method: 'post',
    data: param
  })
}
// 删除详情数据
export const deleteTradeUnion = (param) => {
  return axios.request({
    url: '/api/ac/csc/tradeUnionService/deleteTradeUnion',
    method: 'post',
    data: param
  })
}
// 批量删除 根据批次和创建时间
export const deleteTradeUnionPL = (param) => {
  return axios.request({
    url: '/api/ac/csc/tradeUnionService/deleteTradeUnionPL',
    method: 'post',
    data: param
  })
}
// 查询批次和创建时间
export const findPCList = (param) => {
  return axios.request({
    url: '/api/ac/csc/tradeUnionService/findPCList',
    method: 'post',
    data: param
  })
}
// 查询处置历史（详情中数据ID）
export const findCZHistoryList = (param) => {
  return axios.request({
    url: '/api/ac/csc/tradeUnionService/findCZHistoryList',
    method: 'post',
    data: param
  })
}
